<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'detail'">
	<div class="fui-content">
		<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:auto">
				<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.banner">
					<a href="javascript:"  ng-click="access_json(item.url)">
						<img src="{{tomedia(item.image) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
					</a>
				</div>
			</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.banner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
		<div class="fui-cell-group" style="margin-top:0">
			<div class="fui-cell">
					<div class="fui-cell-info" style="line-height:1.8">
						<div class="bold"><img src="{{tomedia(pagedata.activity.image) || '../core/resource/images/nopic.jpg'}}" style="width: 1.3rem; height: 1.3rem;"> {{pagedata.activity.title}}</div>
						<div class="gray" style="padding:0 0.3rem;font-size:0.65rem">
						<div><i class="icon jinyunicon icon-gerenzhongxin" ></i> 访问:{{pagedata.activity.readnum || '0'}}次<i ng-if="pagedata.pluginset.no_sale!=1" class="icon jinyunicon icon-yuding" style="margin-left:0.3rem"> 报名:{{pagedata.activity.num || '0'}}人 </i><span ng-if="pagedata.activity.duration>0" class="store-distance" style="margin-left:0.3rem"> 活动时长：约{{pagedata.activity.duration}}小时</span></div>
						<div>活动地址：<span>{{pagedata.activity.address}}</span> <i class="icon icon-ditu"></i></div>
						<div ng-if="pagedata.activity.organize">活动发起方：<span>{{pagedata.activity.organize}}</span></div>
						<div>活动开始时间：<span>{{pagedata.activity.time || '待定'}}</span></div>
						<div>报名截止时间：<span>{{pagedata.activity.end}}</span></div>
						<div ng-if="pagedata.activity.money>0">报名费用：<span class="red">{{pagedata.activity.money}}元/人</span></div>
						</div>
					</div>
			</div>
		</div>
		<div style="padding:0.5rem;">
			<div class="fui-cell-group" style="margin-top:0">
				<div ng-repeat="item in pagedata.activity.content">
					<div class="fui-cell">
						<div class="fui-cell-label bold">{{item.title}}</div>
						<div class="fui-cell-info" style="line-height:1.8"></div>
						<div class="fui-cell-remark noremark" href="javascript:;" ng-click="toogle(item,'show')">
							<i class="icon jinyunicon icon-moreunfold" style="color:#19b955"></i>
						</div>
					</div>
					<div style="padding:0.5rem 0.6rem;font-size:0.65rem;color:#999" ng-if="item.show">
						<div ng-bind-html="trust(item.desc)" class="content-images"></div>
					</div>
				</div>
			</div>
			<div ng-if="pagedata.activity.remark"  class="weui_cells_title bold">活动介绍：</div>
			<div ng-if="pagedata.activity.remark" ng-bind-html="trust(pagedata.activity.remark)" class="content-images" style="padding:0.2rem 0.5rem"></div>
		</div>
		<div class="fui-navbar-tip c" style="color:#999;background:#f2f2f2">
		{{pagedata.activity.organize || pagedata.account.title}} | <a ng-click="pagedata.show_xieyi=true;" style="color:#337ab7;">《个人信息保护申明》</a>
		</div>
		<div ng-if="pagedata.isend!=1 && pagedata.ismannum!=1" class="fui-navbar sysbgcolor c" style="height:2.5rem;">
			<a href="javascript:;" ng-click="pagedata.check_buy();" style="font-size:0.8rem;line-height:2.5rem;color:#fff"><i class="icon icon-bianji"></i> 立即报名</a>
		</div>
		<div ng-if="pagedata.isend==1 || pagedata.ismannum==1" class="fui-navbar c" style="height:2.5rem;background:#999">
			<a href="javascript:;" style="font-size:0.8rem;line-height:2.5rem;color:#fff"><i class="icon icon-bianji"></i> {{pagedata.notitle}}</a>
		</div>
	</div>
	<div ng-if="pagedata.show_xieyi" class="popup">
		<div class="popup-body">
			<div class="popup-center">
				<i class="closed icon icon-cuowu" ng-click="pagedata.show_xieyi=false"></i>
				<div class="content-images" style="padding:0.5rem;height:20rem; overflow-y:scroll;">
						<div class="title bold" style="font-size:0.8rem">个人信息保护申明 / <small>Read Ggree</small></div>
						<div class="text" style="padding-top:0.5rem;font-size:0.7rem" ng-bind-html="trust(pagedata.xieyi.content2)">
						</div>
				</div>
				<div ng-if="pagedata.show_type!=2" class="modal-footer">
					<div ng-click="pagedata.show_xieyi=false;pagedata.post.check=1;" class="mod-check" style="width: 100%; margin: 0;">我已阅读</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
scope.pagedata.check_buy=function(){
	var activityid=scope.pagedata.activity.id
	scope.get('jy_mbaoming/detail/check_buy/activityid='+activityid,function(res){});
}
</script>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
</div>